package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author min
 * @since 2022-12-27
 */
@TableName("track_detail")
@Data
public class TrackDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long trackId;

    /**
     * 教师id,或者是学校id
     */
    private Long sourseId;

    @TableLogic
    private Integer deleted;

    /**
     * 1个人，2校区
     */
    private Integer type;

    /**
     * 1 市场部，2战队
     */
    private Integer trackType;

    private Integer classify;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private String name;

    //校区id，多个用半角逗号隔开
    private String schoolIdStr;

    //年级id，多个用半角逗号隔开
    private String yearClassIdStr;

    //班型id，多个用半角逗号隔开
    private String classTypeIdStr;

    private String subjectsIdStr;

    @ApiModelProperty("班级id,多个逗号隔开")
    private String gradeIdStr;

    @TableField(exist = false)
    private String sourseIdList;

}
